Print the contents of the window.